/**
 * This file is part of mycollab-services.
 *
 * mycollab-services is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * mycollab-services is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with mycollab-services.  If not, see <http://www.gnu.org/licenses/>.
 */
/*Domain class of table m_crm_product_catalog*/
package com.mycollab.module.crm.domain;

import com.mycollab.core.arguments.ValuedBean;
import com.mycollab.db.metadata.Column;
import com.mycollab.db.metadata.Table;
import java.util.Date;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.hibernate.validator.constraints.Length;

@SuppressWarnings("ucd")
@Table("m_crm_product_catalog")
public class ProductCatalog extends ValuedBean {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.id
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("id")
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.url
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=255, message="Field value is too long")
    @Column("url")
    private String url;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.taxclass
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("taxclass")
    private String taxclass;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.mft_partnumber
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("mft_partnumber")
    private String mftPartnumber;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.vendor_partnumber
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("vendor_partnumber")
    private String vendorPartnumber;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.currencyid
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=4, message="Field value is too long")
    @Column("currencyid")
    private String currencyid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.cost
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("cost")
    private Double cost;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.listprice
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("listprice")
    private Double listprice;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.discountprice
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("discountprice")
    private Double discountprice;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.pricing_formula
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("pricing_formula")
    private String pricingFormula;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.description
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=4000, message="Field value is too long")
    @Column("description")
    private String description;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.date_available
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("date_available")
    private Date dateAvailable;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.availability
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("availability")
    private String availability;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.quantity_in_stock
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("quantity_in_stock")
    private String quantityInStock;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.support_name
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("support_name")
    private String supportName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.support_contact
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("support_contact")
    private String supportContact;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.support_desc
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("support_desc")
    private String supportDesc;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.support_term
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=45, message="Field value is too long")
    @Column("support_term")
    private String supportTerm;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.productname
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Length(max=100, message="Field value is too long")
    @Column("productname")
    private String productname;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.sAccountId
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("sAccountId")
    private Integer saccountid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.createdTime
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("createdTime")
    private Date createdtime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_crm_product_catalog.lastUpdatedTime
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    @Column("lastUpdatedTime")
    private Date lastupdatedtime;

    private static final long serialVersionUID = 1;

    public final boolean equals(Object obj) {
        if (obj == null) { return false;}
        if (obj == this) { return true;}
        if (!obj.getClass().isAssignableFrom(getClass())) { return false;}
        ProductCatalog item = (ProductCatalog)obj;
        return new EqualsBuilder().append(id, item.id).build();
    }

    public final int hashCode() {
        return new HashCodeBuilder(1913, 25).append(id).build();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.id
     *
     * @return the value of m_crm_product_catalog.id
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.id
     *
     * @param id the value for m_crm_product_catalog.id
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.url
     *
     * @return the value of m_crm_product_catalog.url
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getUrl() {
        return url;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.url
     *
     * @param url the value for m_crm_product_catalog.url
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.taxclass
     *
     * @return the value of m_crm_product_catalog.taxclass
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getTaxclass() {
        return taxclass;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.taxclass
     *
     * @param taxclass the value for m_crm_product_catalog.taxclass
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setTaxclass(String taxclass) {
        this.taxclass = taxclass;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.mft_partnumber
     *
     * @return the value of m_crm_product_catalog.mft_partnumber
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getMftPartnumber() {
        return mftPartnumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.mft_partnumber
     *
     * @param mftPartnumber the value for m_crm_product_catalog.mft_partnumber
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setMftPartnumber(String mftPartnumber) {
        this.mftPartnumber = mftPartnumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.vendor_partnumber
     *
     * @return the value of m_crm_product_catalog.vendor_partnumber
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getVendorPartnumber() {
        return vendorPartnumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.vendor_partnumber
     *
     * @param vendorPartnumber the value for m_crm_product_catalog.vendor_partnumber
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setVendorPartnumber(String vendorPartnumber) {
        this.vendorPartnumber = vendorPartnumber;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.currencyid
     *
     * @return the value of m_crm_product_catalog.currencyid
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getCurrencyid() {
        return currencyid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.currencyid
     *
     * @param currencyid the value for m_crm_product_catalog.currencyid
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setCurrencyid(String currencyid) {
        this.currencyid = currencyid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.cost
     *
     * @return the value of m_crm_product_catalog.cost
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Double getCost() {
        return cost;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.cost
     *
     * @param cost the value for m_crm_product_catalog.cost
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setCost(Double cost) {
        this.cost = cost;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.listprice
     *
     * @return the value of m_crm_product_catalog.listprice
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Double getListprice() {
        return listprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.listprice
     *
     * @param listprice the value for m_crm_product_catalog.listprice
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setListprice(Double listprice) {
        this.listprice = listprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.discountprice
     *
     * @return the value of m_crm_product_catalog.discountprice
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Double getDiscountprice() {
        return discountprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.discountprice
     *
     * @param discountprice the value for m_crm_product_catalog.discountprice
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setDiscountprice(Double discountprice) {
        this.discountprice = discountprice;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.pricing_formula
     *
     * @return the value of m_crm_product_catalog.pricing_formula
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getPricingFormula() {
        return pricingFormula;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.pricing_formula
     *
     * @param pricingFormula the value for m_crm_product_catalog.pricing_formula
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setPricingFormula(String pricingFormula) {
        this.pricingFormula = pricingFormula;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.description
     *
     * @return the value of m_crm_product_catalog.description
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getDescription() {
        return description;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.description
     *
     * @param description the value for m_crm_product_catalog.description
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.date_available
     *
     * @return the value of m_crm_product_catalog.date_available
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Date getDateAvailable() {
        return dateAvailable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.date_available
     *
     * @param dateAvailable the value for m_crm_product_catalog.date_available
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setDateAvailable(Date dateAvailable) {
        this.dateAvailable = dateAvailable;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.availability
     *
     * @return the value of m_crm_product_catalog.availability
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getAvailability() {
        return availability;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.availability
     *
     * @param availability the value for m_crm_product_catalog.availability
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setAvailability(String availability) {
        this.availability = availability;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.quantity_in_stock
     *
     * @return the value of m_crm_product_catalog.quantity_in_stock
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getQuantityInStock() {
        return quantityInStock;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.quantity_in_stock
     *
     * @param quantityInStock the value for m_crm_product_catalog.quantity_in_stock
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setQuantityInStock(String quantityInStock) {
        this.quantityInStock = quantityInStock;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.support_name
     *
     * @return the value of m_crm_product_catalog.support_name
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getSupportName() {
        return supportName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.support_name
     *
     * @param supportName the value for m_crm_product_catalog.support_name
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setSupportName(String supportName) {
        this.supportName = supportName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.support_contact
     *
     * @return the value of m_crm_product_catalog.support_contact
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getSupportContact() {
        return supportContact;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.support_contact
     *
     * @param supportContact the value for m_crm_product_catalog.support_contact
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setSupportContact(String supportContact) {
        this.supportContact = supportContact;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.support_desc
     *
     * @return the value of m_crm_product_catalog.support_desc
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getSupportDesc() {
        return supportDesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.support_desc
     *
     * @param supportDesc the value for m_crm_product_catalog.support_desc
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setSupportDesc(String supportDesc) {
        this.supportDesc = supportDesc;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.support_term
     *
     * @return the value of m_crm_product_catalog.support_term
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getSupportTerm() {
        return supportTerm;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.support_term
     *
     * @param supportTerm the value for m_crm_product_catalog.support_term
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setSupportTerm(String supportTerm) {
        this.supportTerm = supportTerm;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.productname
     *
     * @return the value of m_crm_product_catalog.productname
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public String getProductname() {
        return productname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.productname
     *
     * @param productname the value for m_crm_product_catalog.productname
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setProductname(String productname) {
        this.productname = productname;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.sAccountId
     *
     * @return the value of m_crm_product_catalog.sAccountId
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Integer getSaccountid() {
        return saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.sAccountId
     *
     * @param saccountid the value for m_crm_product_catalog.sAccountId
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setSaccountid(Integer saccountid) {
        this.saccountid = saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.createdTime
     *
     * @return the value of m_crm_product_catalog.createdTime
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Date getCreatedtime() {
        return createdtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.createdTime
     *
     * @param createdtime the value for m_crm_product_catalog.createdTime
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setCreatedtime(Date createdtime) {
        this.createdtime = createdtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_crm_product_catalog.lastUpdatedTime
     *
     * @return the value of m_crm_product_catalog.lastUpdatedTime
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public Date getLastupdatedtime() {
        return lastupdatedtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_crm_product_catalog.lastUpdatedTime
     *
     * @param lastupdatedtime the value for m_crm_product_catalog.lastUpdatedTime
     *
     * @mbg.generated Fri Nov 25 23:57:08 ICT 2016
     */
    public void setLastupdatedtime(Date lastupdatedtime) {
        this.lastupdatedtime = lastupdatedtime;
    }

    public enum Field {
        id,
        url,
        taxclass,
        mftPartnumber,
        vendorPartnumber,
        currencyid,
        cost,
        listprice,
        discountprice,
        pricingFormula,
        description,
        dateAvailable,
        availability,
        quantityInStock,
        supportName,
        supportContact,
        supportDesc,
        supportTerm,
        productname,
        saccountid,
        createdtime,
        lastupdatedtime;

        public boolean equalTo(Object value) {
            return name().equals(value);
        }
    }
}